package com.yunxi.dao.otd;

import com.yunxi.core.dao.BaseMapperPlus;
import com.yunxi.model.otd.OtdWeekPlanSingle;
import com.yunxi.otd.pojo.OtdWeekPlanSingleVO;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 生产计划 Mapper 接口
 * </p>
 *
 * @author XUQI
 * @since 2019-05-13
 */
public interface OtdWeekPlanSingleMapper extends BaseMapperPlus<OtdWeekPlanSingle> {

    List<OtdWeekPlanSingleVO> selectPlanListByCode(String weekPlanCode);

    Integer selectPlanCountByDetailCode(String detailCode);

    void retainSingleByNum(@Param("num") Integer num,@Param("detailCode") String detailCode);

    void deletePlanByDetailCode(String detailCode);

    List<OtdWeekPlanSingle> selectListByDetailCode(String detailCode);

    void deleteSingleByWeekPlanCode(String weekPlanCode);

}
